import request from '../utils/request'
//后端
//分页查询
export const javapicklist = (count = 1, limitNum = 10) => {
    return request({
        url: "/api/pickall",
        method: "GET",
        params: {
            count, limitNum
        }

    })
}
//添加
export const javaaddpick = (obj) => {
    return request({
        url: "/api/pickadd",
        method: "POST",
        data: {
            carNumber: obj.carNumber,
            carRunnning: obj.carRunnning,
            carState: obj.carState,
            pickDate: obj.pickDate,
            wbId: obj.wbId,
            wbPirce: obj.wbPirce
        }
    })
}
// 删除
export const javadelpick = (obj) => {
    return request({
        url: "/api/pickone/?id=" + obj.id,
        method: "DELETE",
    })
}
//编辑
export const javachangepick = (obj) => {
    return request({
        url: "/api/apply",
        method: "PUT",
        data: {
            id: obj.id,
            wbId: obj.wbId,
            wbDate: obj.wbDate,
            wbReason: obj.wbReason,
            wbType: obj.wbType,
            carNumber: obj.carNumber,
        }
    })
}
//查看单条
export const javagetpick = (obj) => {
    return request({
        url: "/api/picksee",
        method: "GET",
        params: {
            id: obj.id,
        }
    })
}